Skip to content

[2.32] develop: fill in output paths for shell derivation#14738

Closed
Mic92 wants to merge 1 commit intoNixOS:2.32-maintenancefrom
Mic92:backport-ca-develop-fix
Closed

[2.32] develop: fill in output paths for shell derivation#14738
Mic92 wants to merge 1 commit intoNixOS:2.32-maintenancefrom
Mic92:backport-ca-develop-fix

Conversation

@Mic92
Copy link
Member

@Mic92 Mic92 commented Dec 8, 2025

Newer nix daemons validate that derivations have their deferred outputs filled in. Fill in InputAddressed output paths for derivations that have Regular hash kind, while leaving CA floating derivations alone.

This matches the behavior of master's fillInOutputPaths().

Fixes compatibility with nix daemon >= 2.33.

Motivation

Context


Add 👍 to pull requests you find important.

The Nix maintainer team uses a GitHub project board to schedule and track reviews.

@Mic92 Mic92 requested a review from edolstra as a code owner December 8, 2025 18:57
@github-actions github-actions bot added the new-cli Relating to the "nix" command label Dec 8, 2025
@Mic92 Mic92 requested a review from Ericson2314 December 8, 2025 18:58
@xokdvium
Copy link
Contributor

xokdvium commented Dec 8, 2025

It looks like master is in the wrong here then and it shouldn't be validating that stuff in the first place. We should fix that before 2.33

Newer nix daemons validate that derivations have their deferred outputs
filled in. Fill in InputAddressed output paths for derivations that
have Regular hash kind, while leaving CA floating derivations alone.

This matches the behavior of master's fillInOutputPaths().

Fixes compatibility with nix daemon >= 2.33.
@Mic92 Mic92 force-pushed the backport-ca-develop-fix branch from 028b75e to f9b6222 Compare December 8, 2025 19:03
@Mic92 Mic92 changed the title develop: fill in output paths for shell derivation [2.32] develop: fill in output paths for shell derivation Dec 8, 2025
@Mic92
Copy link
Member Author

Mic92 commented Dec 8, 2025

It looks like master is in the wrong here then and it shouldn't be validating that stuff in the first place. We should fix that before 2.33

You can fight this out with John :) It happens if you have ca-derivations enabled and use nix develop of nix 2.31/2.32 with master for the nix-daemon.

@Mic92
Copy link
Member Author

Mic92 commented Dec 8, 2025

@xokdvium this is what I applied on my branch: Mic92@c12060a

Also opened as a PR: #14739

@Mic92
Copy link
Member Author

Mic92 commented Dec 8, 2025

I guess we do #14739

@Mic92 Mic92 closed this Dec 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

new-cli Relating to the "nix" command

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants